<div
  bsModal
  #actionModal="bs-modal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="actionModal"
  aria-hidden="true"
  [config]="{ backdrop: 'static' }"
>
  <div class="modal-dialog">
    <div class="modal-content">
      <form *ngIf="active" #editForm="ngForm" novalidate (ngSubmit)="save()">
        <div class="modal-header">
          <h4 class="modal-title">
            <span>绑定岗</span>
          </h4>
          <button
            type="button"
            class="close"
            (click)="close()"
            aria-label="Close"
          >
            <span aria-hidden="true">&times;</span>
          </button>
        </div>

        <div class="modal-body">
          <div
            class="form-group form-md-line-input form-md-floating-label no-hint"
          >
            <label style="display: block">完成时间： </label>

            <div>
              <p-calendar
                [(ngModel)]="dueDate"
                [inputStyle]="{ width: '100%' }"
                name="dueDate"
                dateFormat="yy-mm-dd"
                [showIcon]="true"
              ></p-calendar>
            </div>
          </div>
          <div
            class="form-group form-md-line-input form-md-floating-label no-hint"
          >
            <p-dropdown
              [options]="teamGroups"
              name="gang"
              [(ngModel)]="teamGroupName"
              placeholder="选择岗"
              optionLabel="name"
              [style]="{ width: '100%' }"
            ></p-dropdown>
          </div>
          <!-- <div
            class="form-group form-md-line-input form-md-floating-label no-hint"
          >
            <label style="display: block">备注： </label>
            <input
              type="text"
              name="remark"
              [(ngModel)]="remark"
              style="width: 100%"
            />
          </div> -->
        </div>
        <div class="modal-footer">
          <button
            [disabled]="saving"
            type="button"
            class="btn btn-default"
            (click)="close()"
          >
            {{ l("Cancel") }}
          </button>
          <button
            type="submit"
            class="btn btn-primary blue"
            [buttonBusy]="saving"
            [busyText]="'绑定中...'"
          >
            <i class="fa fa-check-circle"></i>
            <span>绑定</span>
          </button>
        </div>
      </form>
    </div>
  </div>
</div>
